{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="../static/js/echars.min.js"></script>
    <script type="text/javascript" src="{% static 'js/jquery.min.js' %}"></script>
    <script type="text/javascript" src="{% static 'js/bootstrap.min.js' %}"></script>
    <script type="text/javascript" src="{% static 'js/perfect-scrollbar.min.js' %}"></script>
    <script type="text/javascript" src="{% static 'js/main.min.js' %}"></script>
    <!-- 加载echars -->
    <script src="{% static 'js/echars.min.js' %}"></script>
    <title>Title</title>
</head>
<body>
<div id="main" style="width: 600px;height:400px;"></div>
<div id="111">

</div>
<script type="text/javascript">
    // 基于准备好的dom，初始化echarts实例
    var myChart = echarts.init(document.getElementById('main'));
    console.log(typeof myChart)
    // 指定图表的配置项和数据
    let option = {
        series: [
            {
                type: 'pie',
                data: [
                    {
                        value: 404,
                        name: '127.0.0.1'
                    },
                    {
                        value: 64,
                        name: '192.168.1.75'
                    }
                ]
            }
        ]
    };

    // 使用刚指定的配置项和数据显示图表。
    myChart.setOption(option);
</script>
</body>
</html>